#ifndef __PLUG_STREAM_H__
#define __PLUG_STREAM_H__

#include "hi_type.h"
#include "plug_common.h"

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* End of #ifdef __cplusplus */

#define PLUG_STREAM_WIDTH  640
#define PLUG_STREAM_HEIGHT  360

//#define PLUG_STREAM_LIBMPEG

#define PLUG_STREAM_PACKET_SIZE 7 * 188 * 10

/**
 * @brief strean init
 * @param[in] None
 * @return 0 success
 * @return -1 failure
 */
HI_S32 PLUG_STREAM_Init(HI_VOID);

/**
 * @brief send stream
 * @param[in] None
 * @return 0 success
 * @return -1 failure
 */
HI_S32 PLUG_STREAM_SendVideoFrame(const void* data, HI_S32 size, HI_BOOL bIsIframe, int64_t pts, int64_t dts);

/**
 * @brief send audio stream
 * @param[in] pstAiData:data info 
 * @return 0 success
 * @return -1 failure
 */
HI_S32 PLUG_STREAM_SendAudioFrame(       PLUG_COMMON_AI_DATA_INFO* pstAiData);

/**
 * @brief read and update system config
 * @param[in] None
 * @return 0 success
 * @return -1 failure
 */
HI_S32 PLUG_STREAM_Deinit(HI_VOID);

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* End of #ifdef __cplusplus */

#endif

